package com.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;

@Slf4j
@RestController
@RequestMapping("/")
public class TestController {

	static int num = 1;

	@GetMapping(value = "/t")
	public Object t(HttpServletRequest request){
//		Enumeration headerNames = request.getHeaderNames();
//		while (headerNames.hasMoreElements()) {
//			String key = (String) headerNames.nextElement();
//			String value = request.getHeader(key);
//			System.out.println(key +" - " + value);
//		}
        System.out.println(num++);
	    return "test-8005";
	}

}
